package com.xiaoxi.exam.utils;

import com.xiaoxi.exam.bean.enums.ExamType;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public class OrderUtils {

  public static String genTradeNo(String userId, ExamType type, String encode) {
    return userId + type + LocalDate.now().format(DateTimeFormatter.ofPattern("yyyyMMdd")) + encode;
  }

}
